#===========================#
# VMware vCenter connection #
#===========================#

variable "vsphere-user" {
  type        = string
  description = "VMware vSphere user name"
  default = "administrator@ch.cn"
}

variable "vsphere-password" {
  type        = string
  description = "VMware vSphere password"
  default = "WUxinglai@666"
}

variable "vsphere-vcenter" {
  type        = string
  description = "VMWare vCenter server FQDN / IP"
  default = "192.168.4.251"
}

variable "vsphere-unverified-ssl" {
  type        = string
  description = "Is the VMware vCenter using a self signed certificate (true/false)"
  default = "true"
}

variable "vsphere-datacenter" {
  type        = string
  description = "VMWare vSphere datacenter"
  default = "Datacenter"
}


variable "vsphere-template-folder" {
  type        = string
  description = "Template folder"
  default = "Templates"
}

#================================#
# VMware vSphere virtual machine #
#================================#

variable "vm-count" {
  type        = string
  description = "Number of VM"
  default     =  1
  }

variable "vm-name-prefix" {
  type        = string
  description = "Name of VM prefix"
  default     =  "playtftest"
}

variable "vm-datastore" {
  type        = string
  description = "Datastore used for the vSphere virtual machines"
  default = "192.168.4.9_datastore"
}

variable "vm-network" {
  type        = string
  description = "Network used for the vSphere virtual machines"
  default = "VM Network"
}

variable "vm-linked-clone" {
  type        = string
  description = "Use linked clone to create the vSphere virtual machine from the template (true/false). If you would like to use the linked clone feature, your template need to have one and only one snapshot"
  default     = "false"
}

variable "vm-cpu" {
  type        = string
  description = "Number of vCPU for the vSphere virtual machines"
  default     = "2"
}

variable "vm-ram" {
  type        = string
  description = "Amount of RAM for the vSphere virtual machines (example: 2048)"
  default = "2048"
}

variable "vm-name" {
  type        = string
  description = "The name of the vSphere virtual machines and the hostname of the machine"
  default = "test"
}

variable "vm_ip" {
  description = "This  make ip address  for  os"
  default = "192.168.4."
}
variable "vm_netmask" {
    description = "VM Netmask"
    default = "24"
}
variable "vsphere_dns_servers"{
    description = "this is  dns"
    type = list(string)
    default = ["114.114.114.114","223.5.5.5"]
}
variable vm_gateway {
  description = "This  make ip address gateway  for  os"
  default = "192.168.4.1"
}
variable "vm-guest-id" {
  type        = string
  description = "The ID of virtual machines operating system"
  default = "centos7_64Guest"
}

variable "vm-template-name" {
  type        = string
  description = "The template to clone to create the VM"
  default = "template-centos7-192.168.4.9"
}

variable "vm-domain" {
  type        = string
  description = "Linux virtual machine domain name for the machine. This, along with host_name, make up the FQDN of the virtual machine"
  default     = ""
}
variable "virtual_machine_search_domain" {
        description = "DNS search domain list"
        type = list(string)
        default= ["114.114.114.114","223.5.5.5"]
}
variable "vsphere_time_zone" {
        description = "What is the timezone of the VM (default: UTC)"
        default = "Asia/Shanghai"
}
